﻿#parse("partials/header.html") #parse("partials/sidebar.html")
<script>
    jQuery(document).ready(function () {


        jQuery("#formID").submit(
            function () {
                if (jQuery("#formID").valid() == true) {
                    jQuery.blockUI();
                    var post_data = jQuery(this).serialize();
                    var form_action = jQuery(this).attr("action");
                    var form_method = jQuery(this).attr("method");

                    jQuery.ajax({
                        type: form_method,
                        url: form_action,
                        cache: false,
                        dataType: "json",
                        data: post_data,
                        success: function (data) {
                            jQuery.unblockUI();
                            $("#notif").html(data['strNotification']);
                            $("#notif").fadeOut(5000);
                        },
                        error: function (data) {
                            jQuery.unblockUI();
                        },
                        complete: function () {

                        }
                    });
                }
                return false;
            });
    });
</script>
<div id="mws-container" class="clearfix">
    <div class="container">
        <form method="post" action="/master/banks/save/" class="crud" id="formID">
        <input type="hidden" value="$IsCreate" name="IsCreate" id="IsCreate" />
        <input type="hidden" value="$bank.Id" name="Id" id="Id" />
        <input type="hidden" value="$bank.RecordStatus" name="RecordStatus" id="RecordStatus" />
        <div class="mws-panel grid_8">
             <div class="mws-panel-header">
                <span class="mws-i-24 i-table-1">$Pagetitle</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-toolbar top clearfix">
                    <ul>
                        <li><a class="mws-ic-16 ic-arrow-left" href="/master/banks/" title="Accept">Back To Bank List</a></li>
                        <li><a class="mws-ic-16 ic-add" href="/master/banks/addbank" title="Accept">Add Bank</a></li>
                    </ul>
                </div>
                <div id="notif">
                    $Notification
                </div>
                <div class="mws-form">
                    <div class="grid_4">
                        <div class="mws-form-inline">
                            <div class="mws-form-row">
                                <label>
                                    Bank Name <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item">
                                    <input class="required text-input, lf mws-textinput" id="NameValue" name="NameValue" type="text" value="$bank.NameValue" />
                                </div>
                            </div>
                            <div class="mws-form-row">
                                <label>
                                    Swift Code <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item">
                                    <input class="required text-input, lf mws-textinput" id="SwiftCode" name="SwiftCode"
                                        type="text" value="$bank.SwiftCode" />
                                </div>
                            </div>
                            <div class="mws-form-row">
                                <label>
                                    Address <span style="color: #FF0000; font-size: medium;">*</span></label>
                                <div class="mws-form-item large">
                                    <input class="required text-input, lf mws-textinput" id="AddressDesc" name="AddressDesc"
                                        type="text" value="$AddressDesc" />
                                    <input maxlength="50" id="AddressId" name="AddressId" type="hidden" value="$AddressId" />
                                </div>
                            </div>
                    
                             <div class="mws-form-row">
                                <br />
                                <span style="color: #FF0000; font-size: large;">*</span><span style="color: #FF0000;">
                                    : Mandatory</span>
                            </div>
                        </div>
                    </div>
                    <div class="clear15">
                    </div>
                   
                    <div class="mws-button-row">
                        <input name="btnAction" class="mws-button red" type="submit" value="Save" />
                        <input class="mws-button gray" type="reset" value="Reset" />
                    </div>
                </div>
            </div>
        </div>
        <hr />
        </form>
    </div>
#parse("partials/footer.html")